import React ,{Component} from 'react'
import './style.less'
import GoBack from '../../../static/icon/goback.png'

export default class Header extends Component{
  render(){
    return(
      <div className='login-header'>
          <div className='header-left'>
            <span onClick={this.goback.bind(this)}>
              <img src={GoBack} alt='' />
            </span>
          </div>
          <span>{this.props.title}</span>
      </div>
    )
  }

  goback(){
    this.props.history.goBack();
  }

}
